﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TaskBasedSchedule.Core
{
    public sealed class UserContext
    {

        #region Properties

        public SignOutReason SignOutReason{ get; private set; }

        public bool IsSignIn { get; private set; }

        public Schedules Schedules { get; private set; }

        #endregion

        #region Public Functions

        public bool CheckAuthority(string key)
        {
            return true;
        }

        public void SignIn(string name, string passwordInMd5)
        {
            throw new System.NotImplementedException();
        }

        public void SignOut(SignOutReason reason)
        {
            throw new System.NotImplementedException();
        }

        #endregion

        #region Private Functions

        private void PrivateInitialize()
        {
            //TODO: Create Schedules
            //TODO: Properties

        }

        #endregion

        #region Constructor&Destructor

        internal UserContext()
        {

        }

        #endregion
    }
}